package com.xm.web.service;

import com.xm.web.entity.po.TbRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xm.web.entity.request.RolePermissionRequest;
import com.xm.web.entity.request.RoleRequest;
import com.xm.web.entity.response.RoleResponse;

import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author yousj
 * @since 2021-08-18
 */
public interface ITbRoleService extends IService<TbRole> {

    List<String> selectRulesByUser(String username);

    List<TbRole> list(String roleName);

    RoleResponse getById(Integer id);

    boolean add(RoleRequest request);

    boolean update(RoleRequest request);

    boolean updatePermissions(RolePermissionRequest request);
}
